package Application.MapApplication.manager
{
	import Application.MapApplication.xmlPrase.BuildFloor;
	import Application.MapApplication.xmlPrase.HomeMapXML;
	import Application.MapApplication.xmlPrase.MapSrcLoad;
	
	import Application.MapApplication.def.Manager;

	public class XMLManager
	{
		private var m_xmlGroup : Array = [];
		
		private function addXML(xmlClass : Class) : *
		{
			m_xmlGroup.push(new xmlClass);
			
			return m_xmlGroup[m_xmlGroup.length-1];
		}
		
		public function praseXML() : void
		{
			for(var i:int=0;i<m_xmlGroup.length;i++)
			{
				m_xmlGroup[i].prase();
			}
		}
		
		public function XMLManager(){ }
		
		public const HomeMap : HomeMapXML = addXML(HomeMapXML);
		public const MapSrc : MapSrcLoad = addXML(MapSrcLoad)
		public const BuildingFloor : BuildFloor = addXML(BuildFloor);
	}
}